package main

import (
	"gitee.com/hongzhaomin/code-gen/gspringdi"
	"gitee.com/hongzhaomin/code-gen/yby"
	"gitee.com/hongzhaomin/hzm-common-go/easycmd"
)

func main() {

	//ybyRegister()

	easycmd.Build("gspringdi", "gspring依赖注入代码生成命令").
		BindHandler(new(gspringdi.ComponentScanner)).
		Regis()

	easycmd.Run()
}

func ybyRegister() {
	easycmd.Build("copy", "查找图片并拷贝到目标目录").
		BindHandler(new(yby.CopyFile)).
		Regis()
	easycmd.Build("findpic", "根据款号查找图片并填充").
		BindHandler(new(yby.FindPic)).
		Regis()
	easycmd.Build("findstock", "根据款号查找库存信息并填充").
		BindHandler(new(yby.FindStock)).
		Regis()
}
